gsk: Complain if we fail to realize a renderer
authorMatthias Clasen <mclasen@redhat.com>
Mon, 7 Sep 2020 15:17:24 +0000 (11:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 7 Sep 2020 15:18:45 +0000 (11:18 -0400)
The only likely place where this is going to happen
is if a renderer was explicitly requested with the
GSK_RENDERER environment variable, and in that case,
it is misleading to silently use a different renderer.

gsk/gskrenderer.c

index be0e930b26a086c95a1f2ebc9db51117ae11239e..8ec0e0d36a62094e80de1f46171a027ae26f592f 100644 (file)
@@ -637,11 +637,10 @@ gsk_renderer_new_for_surface (GdkSurface *surface)
           return renderer;
         }
 
-      GSK_RENDERER_NOTE (renderer, RENDERER,
-          g_message ("Failed to realize renderer of type '%s' for surface '%s': %s\n",
-                   G_OBJECT_TYPE_NAME (renderer),
-                   G_OBJECT_TYPE_NAME (surface),
-                   error->message));
+      g_message ("Failed to realize renderer of type '%s' for surface '%s': %s\n",
+                 G_OBJECT_TYPE_NAME (renderer),
+                 G_OBJECT_TYPE_NAME (surface),
+                 error->message);
       g_object_unref (renderer);
       g_clear_error (&error);
     }